$(function (){
    $.getJSON("/api/cart/findCartCount",ret=>{
        console.log(ret)
        let count;
        if(ret['code']==3002 || ret['code']==400){
            // 没有登录
            count = '0'
        }else if(ret['code']==3001){
            count = ret['data']
        }
        $('.shopcar .count').html(count)
    })
})